﻿using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;

namespace MvcClient.Web.Controllers
{
    public class AccountController : Controller
    {
        private readonly ILogger<HomeController> _logger;

        public AccountController(ILogger<HomeController> logger)
        {
            _logger = logger;
        }

        /// <summary>
        /// 当鉴权设置时默认使用Cookie时，DefaultChallengeScheme为Cookie，会默认跳转到本地Account/Login
        /// 如果额外设置了DefaultChallengeScheme为OIDC,则跳转到远程地址
        /// </summary>
        /// <returns></returns>
        public IActionResult Login()
        {
            return View();
        }
    }
}
